package com.lframework.xingyun.basedata.service.product;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.xingyun.basedata.entity.ProductCostCardDetail;
import java.util.List;

/**
 * 商品成本卡明细服务
 *
 * @author zmj
 * @since 2024-01-01
 */
public interface ProductCostCardDetailService extends BaseMpService<ProductCostCardDetail> {

  /**
   * 根据成本卡ID查询明细
   *
   * @param costCardId
   * @return
   */
  List<ProductCostCardDetail> getByCostCardId(String costCardId);


  List<ProductCostCardDetail> getReplacementsByCostCardId(String costCardId);

  /**
   * 根据成本卡ID删除明细
   *
   * @param costCardId
   */
  void deleteByCostCardId(String costCardId);

  /**
   * 根据成分商品ID查询明细
   *
   * @param ingredientProductId
   * @return
   */
  List<ProductCostCardDetail> getByIngredientProductId(String ingredientProductId);
} 